package weifei.wx.community.entity.dto;


import lombok.Data;
import weifei.wx.community.entity.TieCommentReply;

import java.util.Date;

@Data
public class TieCommentReplyDTO
{
    private UserDTO userDTO;
    private Long id;
    private Long tieCommentId;
    private Date publishTime;
    private String content;

    public TieCommentReplyDTO(UserDTO userDTO, TieCommentReply reply)
    {
        this.userDTO = userDTO;
        this.id = reply.getId();
        this.tieCommentId = reply.getTieCommentId();
        this.publishTime = reply.getPublishTime();
        this.content = reply.getContent();
    }
}

